package com.mall.module.user.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(description = "用户登录数据传输对象")
public class UserLoginDTO {

    @ApiModelProperty(value = "用户名/手机号/邮箱", required = true)
    @NotBlank(message = "登录账号不能为空")
    private String account;

    @ApiModelProperty(value = "密码", required = true)
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "验证码")
    private String verifyCode;

    @ApiModelProperty(value = "登录IP")
    private String loginIp;

    @ApiModelProperty(value = "登录类型(PASSWORD/WECHAT/ALIPAY/PHONE)")
    private String loginType;

    @ApiModelProperty(value = "第三方授权码")
    private String authCode;
}